package com.un.ebs.quality.domain;

import com.un.ebs.quality.enums.QualityTypeEnum;
import java.util.Date;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.*;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import org.springframework.stereotype.Component;
import lombok.Data;
import com.un.ebs.core.metadata.DbField;

/**
 * (QualityCheck)表实体类
 *
 * @author liubo
 * @since 2020-12-02 17:54:01
 */
@Data
@Component
@TableName("tb_quality_check")
@SuppressWarnings("serial")
public class QualityCheck extends Model<QualityCheck> {

    @TableId(value = "id", type = IdType.UUID)
    private String id;

    @DbField(name = "code",  length = 50 , precision = 0)
    private String code;
                
    @DbField(name = "quality_type",  length = -1 , precision = 0)
    private QualityTypeEnum qualityType;
                
    @DbField(name = "not_pass_qty",  length = 18 , precision = 4)
    private Double notPassQty;
                
    @DbField(name = "pass_status",  length = -1 , precision = 0)
    private Boolean passStatus;
                
    @DbField(name = "production_work_order_id",  length = 40 , precision = 0)
    private String productionWorkOrderId;
                
    @DbField(name = "inventory_note_item_id",  length = 40 , precision = 0)
    private String inventoryNoteItemId;
                
    @DbField(name = "quality_define_id",  length = 40 , precision = 0)
    private String qualityDefineId;
                
    @DbField(name = "remark",  length = 100 , precision = 0)
    private String remark;
        
    @TableField(fill = FieldFill.INSERT)            
    @DbField(name = "create_time",  length = -1 , precision = 0)
    private Date createTime;
        
    @TableField(fill = FieldFill.INSERT)            
    @DbField(name = "create_at",  length = 40 , precision = 0)
    private String createAt;
        
    @TableField(fill = FieldFill.INSERT)            
    @DbField(name = "create_at_name",  length = 100 , precision = 0)
    private String createAtName;
                
    @DbField(name = "tenant_id",  length = 40 , precision = 0)
    private String tenantId;
                
    @DbField(name = "check_qty",  length = 18 , precision = 4)
    private Double checkQty;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }
    
}